import { createRouter, createWebHistory } from 'vue-router'
import TravelMaster from '../views/TravelMaster.vue'
import SuperAgent from '../views/SuperAgent.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/travel-master'
    },
    {
      path: '/travel-master',
      name: 'TravelMaster',
      component: TravelMaster
    },
    {
      path: '/super-agent',
      name: 'SuperAgent',
      component: SuperAgent
    },
    {
      path: '/:pathMatch(.*)*',
      redirect: '/travel-master'
    }
  ]
})

export default router